package cn.iocoder.yudao.module.reading.controller.app.community.vo.post;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 社区帖子 Response VO
 *
 * @author 芋道源码
 */
@Schema(description = "用户 APP - 社区帖子 Response VO")
@Data
public class PostRespVO {

    @Schema(description = "帖子ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "发帖用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long userId;

    @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "小明")
    private String userNickname;

    @Schema(description = "用户头像", example = "https://example.com/avatar.jpg")
    private String userAvatar;

    @Schema(description = "帖子类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "normal")
    private String type;

    @Schema(description = "帖子标题", example = "分享一本好书")
    private String title;

    @Schema(description = "帖子内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "今天读了一本很棒的绘本...")
    private String content;

    @Schema(description = "图片URL列表", example = "[\"https://example.com/image1.jpg\", \"https://example.com/image2.jpg\"]")
    private List<String> images;

    @Schema(description = "关联作品ID", example = "1")
    private Long workId;

    @Schema(description = "作品类型", example = "book")
    private String workType;

    @Schema(description = "作品标题", example = "小红帽")
    private String workTitle;

    @Schema(description = "作品封面", example = "https://example.com/cover.jpg")
    private String workCover;

    @Schema(description = "点赞数", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    private Integer likeCount;

    @Schema(description = "评论数", requiredMode = Schema.RequiredMode.REQUIRED, example = "5")
    private Integer commentCount;

    @Schema(description = "浏览数", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
    private Integer viewCount;

    @Schema(description = "当前用户是否已点赞", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    private Boolean isLiked;

    @Schema(description = "是否置顶", requiredMode = Schema.RequiredMode.REQUIRED, example = "false")
    private Boolean isTop;

    @Schema(description = "是否热门", requiredMode = Schema.RequiredMode.REQUIRED, example = "false")
    private Boolean isHot;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2025-01-01T08:00:00")
    private LocalDateTime createTime;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2025-01-01T08:00:00")
    private LocalDateTime updateTime;

}
